package cn.iocoder.yudao.module.resource.controller.admin.creator.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 创作者 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ResourceCreatorRespVO {

    @Schema(description = "创作者ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("创作者ID")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
    @ExcelProperty("用户ID")
    private Long userId;

    @Schema(description = "创作者昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "设计师小明")
    @ExcelProperty("创作者昵称")
    private String nickname;

    @Schema(description = "头像URL", example = "https://example.com/avatar.jpg")
    @ExcelProperty("头像URL")
    private String avatar;

    @Schema(description = "简介", example = "专注于图标设计")
    @ExcelProperty("简介")
    private String introduction;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status")
    private Integer status;

    @Schema(description = "审核状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "审核状态", converter = DictConvert.class)
    @DictFormat("resource_audit_status")
    private Integer auditStatus;

    @Schema(description = "审核备注", example = "审核通过")
    @ExcelProperty("审核备注")
    private String auditRemark;

    @Schema(description = "总积分", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000")
    @ExcelProperty("总积分")
    private Integer totalPoints;

    @Schema(description = "可用积分", requiredMode = Schema.RequiredMode.REQUIRED, example = "500")
    @ExcelProperty("可用积分")
    private Integer availablePoints;

    @Schema(description = "资源数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "50")
    @ExcelProperty("资源数量")
    private Integer materialCount;

    @Schema(description = "粉丝数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
    @ExcelProperty("粉丝数量")
    private Integer followerCount;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
